Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new control #734

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

new control #734

wants to merge 3 commits into from

Conversation

NadiaKhodaei
Copy link

@NadiaKhodaei NadiaKhodaei commented Jul 3, 2024

This Python script, key_pose.py, allows for teleoperation of a drone or robot using keyboard inputs. The script reads from the keyboard and publishes PoseStamped messages to control the position and yaw of the robot in a ROS (Robot Operating System) environment.

Setup and Usage

Prerequisites

  • ROS (Robot Operating System) installed on your system.
  • Python 3.x installed on your system.

Installation

  1. Clone the repository:

    git clone https:/NadiaKhodaei/rotors_simulator.git
    cd rotors_simulator
  2. Ensure all dependencies are installed:
    Make sure you have rospy and geometry_msgs installed. You can typically install these using rosdep:

    rosdep install rospy geometry_msgs

Running the Script

  1. Navigate to the script's directory:

    cd /path/to/rotors_simulator/scripts
  2. Run the script:

    python3 key_pose.py
  3. Control your robot using the keyboard inputs as described in the key bindings section.

Example

After running the script, you should see the following prompt in your terminal:
Moving around:
Arrow Keys:
↑ ↓ ← →

↑/↓ : move forward/backward in x direction
←/→ : rotate left/right (yaw) in z direction
i/, : move up/down in z direction
k/m : move left/right in y direction
anything else : stop

Adjust speed:

: increase step

: decrease step

s : reset position to default

Author

Nadia Khodaei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant